home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2874 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: shell02.ozemail.com.au!pompo
  2. From: pompo@shell02.ozemail.com.au (Michael Pomponio)
  3. Newsgroups: comp.lang.c++
  4. Subject: Visual c++ Win32 problem
  5. Date: 20 Jan 1996 04:11:07 GMT
  6. Organization: OzEmail Pty Ltd - Australia
  7. Message-ID: <4dpq0r$d1c@oznet07.ozemail.com.au>
  8. NNTP-Posting-Host: shell02.ozemail.com.au
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Subject: Visual c++ Win32 Problems
  12. In Visual c++ v1.5 I wrote an application that calls an windows ftp
  13. program anf waits until the ftp prgram has finished before continuing. I
  14. basialled called the ftp like so;
  15.  
  16.  
  17. WinExec("ftp", 4);
  18. while ( FindWindow(NULL, "ftp") != NULL)
  19. {
  20.     Yeild();
  21. }
  22. MessageBox("FTP PROGRAM HAS EXITED"):
  23.  
  24.  
  25. When I try to do the same in Visual c++ v2.0 ( running on Win95) It
  26. doesn't work for 2 reasons, (1) Yield() function no longer exists in
  27. Win32 and (2) porgrams are executed via a THREAD and a NEW PROCESS (
  28. bloody multitasking). Does anybody now how I can do what I did in v1.5 in
  29. v2.0/ Becuase I have read every c++ book in any of Sydneys desent book
  30. store and they tell nothing about WinExec, createprocess and createthread 
  31. ( that is relevant)..
  32.  
  33.   Thanks I advance
  34.  
  35.       Michael Pomponio............
  36.  
  37.